package game.data.structure.animation{
	import flash.display.BitmapData;
	import flash.geom.Point;
	
	/**
	 * 帧数据结构
	 * 
	 * 帧是每个动作最基本的组成单元，包含以下数据：
	 * 
	 * 帧号，坐标，偏移坐标，宽度，高度
	 *  
	 * 
	 * 
	 * @author Sunix
	 * 
	 */	
	public class FrameData	{
		
		private var _index:uint;   //帧号
		private var _point:Point;  //坐标
		private var _offsetPoint:Point;  //偏移坐标
		private var _width:uint;  //宽度
		private var _height:uint;  //高度
		private var _bitmapData:BitmapData;   //位图核心

		public function get bitmapData():BitmapData{
			return _bitmapData;
		}

		public function set bitmapData(value:BitmapData):void{
			_bitmapData = value;
		}

		public function set index(id:uint):void{
			_index = id;
		}
		
		public function get index():uint{
			return _index;
		}
		
		public function set point(po:Point):void{
			_point = po;
		}
		
		public function get point():Point{
			return _point;
		}
		
		public function set offsetPoint(po:Point):void{
			_offsetPoint = po;
		}
		
		public function get offsetPoint():Point{
			return _offsetPoint;
		}
		
		public function set width(num:uint):void{
			_width = num;
		}
		
		public function get width():uint{
			return _width;
		}
		
		public function set height(num:uint):void{
			_height = num;
		}
		
		public function get height():uint{
			return _height;
		}
	}
}